﻿//-----------------------------------------------------------------------
// <copyright file="Email.cs" company="MKCoolsoft">
//     Copyright (c) mkcoolsoft. All rights reserved.
// </copyright>
// <author>Mario Kuhl</author>
// <revision>26.01.2014 Initial version</revision>
//-----------------------------------------------------------------------

namespace MKCoolsoft.GPXLib
{
    #region usings

    using System;
    using System.Collections.Generic;
    using System.Xml.Serialization;

    #endregion usings

    /// <summary>
    /// An email address. Broken into two parts (id and domain) to help prevent 
    /// email harvesting.
    /// </summary>
    public class Email
    {
        #region private fields

        /// <summary>
        /// id half of email address (Mia-Sophie2011)
        /// </summary>
        private string idField;

        /// <summary>
        /// domain half of email address (hotmail.com)
        /// </summary>
        private string domainField;

        #endregion  private fields

        #region public properties

        /// <summary>
        /// Gets or sets Id from email.
        /// </summary>
        [XmlAttributeAttribute]
        public string Id
        {
            get
            {
                return this.idField;
            }

            set
            {
                this.idField = value;
            }
        }

        /// <summary>
        /// Gets or sets Domain from email.
        /// </summary>
        [XmlAttributeAttribute]
        public string Domain
        {
            get
            {
                return this.domainField;
            }

            set
            {
                this.domainField = value;
            }
        }

        #endregion public properties
    }
}
